package cms.jason.dao;

import cms.jason.entity.ArticleType;
import com.cn.lotary.base.dao.BaseDao;
import com.cn.lotary.base.dao.BaseDaoParam;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Jason
 */
@Stateless
public class ArticleTypeDao extends BaseDao<ArticleType> {

    @PersistenceContext
    private EntityManager em;

    @Override
    protected BaseDaoParam<ArticleType> getBaseDaoParam() {
        return new BaseDaoParam<ArticleType>(em, ArticleType.class);
    }
}
